#pragma once
#include <ctime>
#include <stdlib.h>
#include <unistd.h>
#include "Point.hpp"
#include"Task.hpp"
class Station
{
public:
    Station(Point startpos = Point(0,0),Point endpos = Point(5,5)):StartPos_(startpos),EndPos_(endpos)
    {

    }
    Task ProductTask()
    {
        sleep(3);
        // srand(time(nullptr));
        Task task;
        task.task_ = 100 + 1;
        task.StationPos_ = StartPos_;
        task.EndPos_ = EndPos_;
        return task;
    }

private:
    //开始位置
    Point StartPos_;
    //结束位置
    Point EndPos_;

};